home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / dvtman13.zip / DVTMAN.DOC < prev    next >
Text File  |  1991-02-10  |  18KB  |  391 lines

  1.  
  2.  
  3.                              DV Task Manager
  4.  
  5.         DV Task Manager is intended to provide DESQview users running
  6. real-time systems a powerful and consistent method of automating
  7. DESQview window operations during unattended operations.  Because DV
  8. Task Manager requires the services of DVTXDI.COM, the following note
  9. is of supreme importance:
  10.  
  11. ***************    Important!  Important!  Important!    *****************
  12. You must be running DESQview version 2.26 or higher for this program to be
  13.         of value!  (Meaning, in 2.25, it won't do anything).
  14. **************************************************************************
  15.  
  16. Summary of Features:
  17.  
  18.    *  DV Task Manager runs comfortably in a non-swappable 30K DESQview
  19.         window and utilizes DESQview API functions to monitor the system
  20.         timer and schedule pending events.
  21.  
  22.    *  Any program for which the user has created a DESQview PIF (by
  23.         adding to the DESQview Open Window menu or otherwise), may be
  24.         run as an event.
  25.  
  26.    *  Events may be scheduled by time of day or by timed interval.  Any
  27.         event may be 'masked off' for particular days of the week.
  28.  
  29.    *  Since the host DV version must be 2.26 or greater, events may be
  30.         run in the background and/or hidden.
  31.  
  32.    *  In addition to PIF style program initiation, an event may also
  33.         request the closing of windows in a variety of ways, the end of
  34.         the current DESQview session, or a system warm or cold boot.
  35.  
  36.  
  37.         DV Task Manager was written using Turbo Professional (Borland Intl).
  38. DESQview interface functions are courtesy of Ralf Brown and his DVGLUE API
  39. library.  Credit also goes to Robert Jourdain for his C Express Programmer's
  40. Library (1989, Simon & Schuster).
  41.     DESQview is a trademark of Quarterdeck Office Systems.
  42.         DVTMAN.COM and all supporting materials are (c)1990-91 Michael D.
  43. Weaver.  All rights are reserved.
  44.  
  45.  
  46.                                     Disclaimer
  47.  
  48.         This program is distributed AS IS - the author cannot accept for
  49. responsibility for the use or abuse of the program resulting in the loss of
  50. data or other imaginable damages.  Though the author is dedicated to
  51. DV Task Manager's correct operation and the support and implementation of
  52. enhancements requested by registered users, he's not rich and cannot
  53. therefore accept legal responsibility for the care and feeding of users' hard
  54. drives and/or other equipment.
  55.         The user of this program, in that he is expected to be the operator
  56. of an electronic bulletin board or other on-line, serious-use system, is
  57. expected to be aware of the potential problems running an unattended system
  58. entails.  Above all, automation implemented through the use of this program
  59. should be fully tested and monitored by the operator of the system prior
  60. to allowing its operation in an unattended environment.
  61.  
  62.  
  63.  
  64.                                About Shareware
  65.  
  66.         DV Task Manager is distributed as shareware.  What this means is that
  67. people who find the program useful are encouraged to 'register' with the
  68. author for a nominal fee, in this case, $35.  Registration lets you feel good
  69. and will also give you the following advantages:
  70.  
  71.         1)  The latest release of DV Task Manager with no timed delay at
  72.             program startup, and a 20 event, instead of 4 event, limit.
  73.         2)  A slightly smaller, slightly faster version of the program
  74.             compiled especially for 286/386 machines and up.
  75.         3)  Influence over potential future enhancements.
  76.  
  77.         Registrants will receive a 3.5" 720k diskette unless 5.25" 360k is
  78. specifically requested.  Those outside the United States and Canada should
  79. add $5 to the cost to cover airmail shipping.
  80.         The $35 cost is for a single user license; site/multi-user licenses
  81. are available at the following discounts*:
  82.  
  83.         2-4   persons/machines:  10% discount per copy of program.
  84.         5-10  persons/machines:  20% discount per copy of program.
  85.         11-up persons/machines:  25% discount per copy of program.
  86. unlimited license for business:  $500 flat fee.
  87.  
  88.         Receivers of site/multi-user licenses will receive a single
  89. registration disk accompanied by permission to duplicate it the requested
  90. number of times.
  91.  
  92.         If you use this program a lot you should register, if only to
  93. encourage the development of more DV-specific software in the future.
  94.         Registrations and all comments/inquiries should be addressed to:
  95.  
  96.     Michael D. Weaver
  97.     Box 4323
  98.         Danville, VA   24540-0106
  99.  
  100.     Electronic contact addresses:
  101.  
  102.         MCI Mail        (MWEAVER)
  103.         CIS             (72210,2035)
  104.  
  105.         The shareware archive of this program (DVTMANnn.ZIP) may be freely
  106. distributed through electronic bulletin board systems or any other means as
  107. long as all files are included in an unmodified form and no fee in excess of
  108. $5 is charged the person receiving the program.
  109.  
  110.  
  111. *  Listed rates are subject to change without notice.
  112.  
  113.  
  114.                                    Installation
  115.  
  116. 1)  Make sure that the target system is running DESQview version 2.26 or
  117.     higher.  This is extremely important as DV Task Manager will otherwise
  118.     be useless.
  119.  
  120. 2)  Install DVTXDI.COM as a TSR prior to starting DESQview.  This is best
  121.     accomplished in AUTOEXEC.BAT and may use a high-loading program such
  122.     as Quarterdeck's LOADHI.COM.  For additional information on DVTXDI.COM,
  123.     please refer to the file DVTXDI.DOC included in DVTXDI.ZIP.
  124.  
  125. 3)  Place the files DVTMAN.COM and TK-PIF.DVP in an appropriate directory
  126.     on the system's hard drive.  A good choice might be C:\DV\DVTMAN.
  127.  
  128. 4)  Use DESQview's Add a Program feature to install DV Task Manager
  129.     so that appears on DESQview's Open menu.  Refer to DESQview documentation
  130.     on Add a Program if necessary.
  131.  
  132. 5)  If your DESQview system does not reside in one of the following
  133.     directories, you will need to further customize the PIF using Change
  134.     a Program:
  135.  
  136.         C:\DV
  137.         D:\DV
  138.         E:\DV
  139.  
  140. 6)   DV Task Manager should now be available from the DV Open Menu.
  141.  
  142. IT IS HIGHLY RECOMMENDED THAT DV Task Manager ALWAYS BE STARTED AS THE
  143. FIRST WINDOW IN ANY DV SYSTEM (if possible).
  144.  
  145.  
  146.  
  147.                                Command Line Options
  148.  
  149. DV Task Manager recognizes the following options on its command line:
  150.  
  151.  
  152. DVP=d:\fspec\dirname    -       DESQview directory, or more specifically,
  153.                                 the directory where DV Task Manager may
  154. find the PIFs it will need to initiate events.  Advanced users may wish to
  155. isolate these PIFs in a special directory.
  156.  
  157.  
  158. QUIET                   -       Requests silent operation.  Normally, DV
  159.                                 Task Manager will use beep sequences to
  160. announce the initiation (or failed initiation) of an event.
  161.  
  162.  
  163. INT=nn                  -       Controls the refresh rate of the real-time
  164.                                 time clock (top left of display).  The
  165. default is nn=05, or five seconds.  This option gives you some control
  166. over how much processor time DV Task Manager consumes.  However, because
  167. DV Task is DESQview specific, it spends most of its time waiting for
  168. DESQview to wake it up, even if nn=01.  The best way to test the impact of
  169. DVTMAN on your system's performance is to run a benchmark program such as
  170. Norton's SI in a Big DOS or other DOS window with DV Task Manager in the
  171. background, and compare the result to what you get without DV Task
  172. Manager.
  173.  
  174.  
  175.  
  176.                                Program Operation
  177.  
  178. DV Task Manager's user interface consists of a single DESQview windows that
  179. the developer hopes will be easy to use and understand.  Each 'event'
  180. occupies a row, and the current event is displayed with fields unprotected
  181. for input.
  182.  
  183. Entering an event:
  184.  
  185.         The simplest way to enter an event for the first time is to
  186. key the appropriate 'DVP keys' or 'Open Keys' into the first unprotected
  187. field (??) and hit enter.  The remaining fields will be primed with default
  188. values.  To make the event active, tab to the start time or interval
  189. fields and key in the desired time.
  190.  
  191.  
  192. Event Status:
  193.  
  194.         Event status is shown at the start of each event line.  The
  195. next event scheduled will show an '*', and other pending events will
  196. show a small dot.  Events that have not been correctly entered will
  197. show neither.
  198.         Event status is modified in real-time as events are initiated
  199. and changes are made by the operator.
  200.         The appearance of a dot or asterisk DOES NOT ensure the event
  201. will run correctly.  No check is made to ensure that the requested PIF
  202. is available - this is learned only on event initiation.  In cases
  203. where the special actions field (see section below) is the major purpose
  204. of the event, the user can enter any invalid set of open keys and the
  205. special actions will still take place.
  206.         When an event is run, DV Task Manager 'rings' the system bell.
  207. One beep sounds if a PIF is found and started.  Two beeps sound if the
  208. event expires but a vaild PIF is not found.  These beeps may be suppressed
  209. with the QUIET command line option.
  210.  
  211.  
  212. Modifying an existing event (selecting a new current):
  213.  
  214.         Only one event (the 'current event') will have its fields
  215. ready for input at any given time.  Any other event (including the ??
  216. event which indicates an available slot) may be made the current
  217. event by moving the cursor, using arrows or the tab key, over the
  218. DVP keys field for the event and tapping the SPACE BAR.  All fields
  219. may then be modified.
  220.  
  221.  
  222. Deleting an event:
  223.  
  224.         Typing '--' into the DVP keys field of an event will delete
  225. that event from the display and DV Task Manager's event file.
  226.  
  227.  
  228.  
  229. Event Fields:
  230.  
  231. *  Start hh:mm   -  The time of day the event is to occur.  If the event
  232.                     is initiated by interval, these fields will show the
  233.                     time of the next expiration of the interval.  NOTE!!!:
  234.                     Start hh:mm and Intervl hh:mm are mutually exclusive -
  235.                     you can use only one or the other.
  236.  
  237. *  Intervl hh:mm -  The time in hours:minutes between iterations of the
  238.                     event.  The next scheduled expiration of the interval
  239.                     is shown in the start hh:mm fields.
  240.                     The first expiration is (re)calculated in the following
  241.                     instances:
  242.  
  243.                     -  When DV Task Manager initializes
  244.                     -  When the event is entered/modified
  245.  
  246.                     If nothing is entered into these fields they will show
  247.                     **:** and the event is assumed to be based on the time
  248.                     show in the start fields.  If you want to tell DV Task
  249.                     Manager something like 'run this event every hour between
  250.                     03:00 and 06:00, you will need to use the Vn=x and
  251.                     IFVn special actions (see next section.)
  252.  
  253. *  SMTWTFS       -  This is the day-of-week mask for the event.  Specific
  254.                     days can be masked off by an N or - (minus) character.
  255.                     If the event is interval based, the next expiration
  256.                     will be resheduled to 00:00 on the first day for
  257.                     which the event is again valid.  Default is to run
  258.                     event regardless of the day of the week.
  259.  
  260. *  BG            -  Y or N.  Specifies whether the event is to run in the
  261.                     background.  The default for this field is Y, but please
  262.                     note:  THE USER IS RESPONSIBLE for seeing that the
  263.                     PIF will indeed run in the background (that it has,
  264.                     for instance, RUNS IN BACKGROUND set to Y as shown on
  265.                     Add/Change a Program).
  266.  
  267. *  HD            -  Y or N.  Specifies whether the event is to run 'hidden'.
  268.                     Default is N.  Care should be taken in testing events
  269.                     for correct operation if this option is to be turned on.
  270.  
  271. *  Alt Program   -  If anything is present on this line it will be placed
  272.                     in the program field of the starting PIF.  This option
  273.                     is provided primarily to allow a single generic window
  274.                     to be used to run a variety of batch files without having
  275.                     to add each individually as separate DV windows.  This
  276.                     option is NOT RECOMMENDED for anyone unsure of what to
  277.                     use it for and how it will work.
  278.  
  279. *  Special...    -  Refer to the following section.
  280.  
  281.  
  282.  
  283. Special Actions field:
  284.  
  285. The Special Actions field provides a way of instructing DV Task Manager to
  286. do things other than start events.  These actions occur PRIOR TO an attempt
  287. to start the PIF associated with the event, and may in fact purposefully
  288. be associated with a PIF that does not exist (such as ** Open Keys).  Up to
  289. four special actions may be entered on each event line - just cram them
  290. together....  Special actions are evaluated and acted upon from left to
  291. right (this is some importance with respect to the IFVn special action.)
  292.  
  293. THESE FEATURES ARE HERE LABELED "Use at your own risk!"  THEY ARE INCLUDED
  294. FOR THEIR POTENTIAL VALUE, AND SHOULD BE USED ONLY AFTER CAREFUL TESTING
  295.                         BY THE SYSTEM OPERATOR.
  296.  
  297. -+??    - where ?? indicates a specific set of open keys.
  298.           Action:  ALL windows running in DESQview that were started by
  299.           ?? open keys are closed prior to running the event.
  300.           Example:  -+TC-+BD-+MF  will close all windows associated with
  301.           open keys TC, BD, and MF.
  302.  
  303. NOTE!!! : DV Task Manager cannot close an application that is swapped to
  304.           disk and cannot be remapped into memory due to the presence
  305.           of a non-swappable window (such as DV Task Manager).  If such a
  306.           condition occurs, the program will issue an error message and
  307.           attempt to continue processing.
  308.  
  309. -!??    - where ?? indicates a specific set of open keys.
  310.           Action:  ALL windows running in DESQview EXCEPT those started by
  311.           ?? open keys are closed prior to running the event.
  312.           The DV Task Manager window will not be affected.
  313.  
  314. -ALL    - Action:  ALL windows running in DESQview are closed prior to
  315.           running the event.
  316.           The DV Task Manager window will not be affected.
  317.  
  318. COLD    - Action:  The system is cold-booted (equivalent to power off/
  319.           power on.)  This directive may not work on machines that are not
  320.           100% IBM compatible.
  321.  
  322. WARM    - Action:  The system is warm-booted (equivalent to CTRL-ALT-DELETE.)
  323.           This directive may not work on machines that are not 100% IBM
  324.           compatible.
  325.  
  326. QUIT    - Action:  DESQview is terminated (equivalent to DESQ-Q-Y.)
  327.           This directive may not work on some XT class machines or machines
  328.           that are not 100% IBM compatible.  Also note: 'Q' must be selectable
  329.           from the main menu (it is NOT there if a window with ALLOW CLOSE
  330.           WINDOW = 'N' is active).  To overcome this, enter QUIT as the 2nd
  331.           special action after -ALL (-ALLQUIT).
  332.  
  333.  
  334. Vn=x    - Action:  Sets variable n (0-9) to value x (1 (on) or 0 (off)).
  335.           DV Task Manager maintains 10 internal variables, all controlled
  336.           by this special action.  The primary purpose of this special
  337.           action is to 'limit' another event running on an interval to a
  338.           specific time frame (see the IFVn) description.)  When you first
  339.           start DV Task Manager:
  340.  
  341.                 *  All variables (0-9) are initially zero.
  342.                 *  All Vn=x special actions are 'chased'.  For instance,
  343.                    suppose an event at 03:00 has V1=1, and an event at
  344.                    05:00 has V1=0.  If DV Task Manager is started at
  345.                    04:00, V1 will be set to 1.  However, if DV Task
  346.                    Manager is started at 07:00, V1 will be set to 0.
  347.  
  348. IFVn    - Action:  Makes the event dependent on the status of Vn (as set
  349.           by the Vn=x special action).  If variable n is on, the event
  350.           will run; if variable n is off (Vn=0), the event will not run
  351.           (even though the display might show it as the 'next' event.)
  352.           The best use for this code is the limiting of interval events
  353.           to a specific time range.  For instance, if you set up an
  354.           interval event to run every hour with IFV1 as a special action,
  355.           you can control the range of hours with other events using
  356.           V1=1 and V1=0 special actions.  More notes:
  357.  
  358.                 *  When IFVn is used, its position in the special actions
  359.                    area IS significant.  In other words, QUITIFV1 is
  360.                    NOT identical to IFV1QUIT.
  361.  
  362.                 *  Things like -+BDIFV1-ALL are possible.  In this case
  363.                    all windows started with BD open keys are closed
  364.                    regardless of the setting of V1.  If V1 is on, however,
  365.                    the -ALL special action is acted upon, and the event
  366.                    is run as usual (possible opening another window.)
  367.  
  368.  
  369.                            Batch File Facilities
  370.  
  371. The following additional files are included in the archive:
  372.  
  373.         TAPXDI.COM           (in DVTXDI.ZIP)
  374.         TAPX.BAT             (in DVTXDI.ZIP)
  375.         DVCOLD.COM
  376.         DVWARM.COM
  377.  
  378. TAPXDI.COM is a simple utility whose purpose is to set an ERRORLEVEL in a
  379. DOS batch file to indicate whether a given 'Open Keys' application is
  380. currently running somewhere in the DESQview system.  This program actually
  381. has nothing to do with Task Manager per se, but it provides an independent
  382. way to interrogate the information maintained by DVTXDI.COM.  For details
  383. on command line parameters, run TAPXDI with no operands from the DOS command
  384. line.  The file TAPX.BAT demonstrates how TAPXDI may be used in a batch file
  385. to control logic flow.
  386.  
  387. DVCOLD.COM initiates a system cold-boot (like special action COLD).
  388. DVWARM.COM initiates a system warm-boot (like special action WARM).
  389.  
  390.  
  391.